<%@ taglib prefix="s" uri="/struts-tags"%>

<s:form action="updateOptionalFees.htm" id="form" theme="simple" method="post">
	<table width="100%">
		<tr>
			<td>
				<s:actionmessage cssClass="verdana11greynormal" />
				<s:actionerror cssClass="Note-red" />
			</td>
		</tr>
		<tr>
			<td height="40" class="sectionheading bottom-border">
				Additional Options Fees
			</td>
		</tr>
		<tr>
			<td valign="top" class="verdana12blacknormal">
				Please enter the Additional Options listing fees. Do not include any
				currency symbols, only digits and the decimal point or comma.
				<br>
				<br>
			</td>
		</tr>
		<tr>
			<td valign="top" width="100%">
				<table width="100%" border="0" cellpadding="0" cellspacing="0"
					class="Textfiled-border">
					<tbody>
						<tr align="center" bgcolor="#f0f0e1" height="30">
							<td align="center" bgcolor="#E9E9E9"
								class="right-border verdana12darkgreybold">
								&nbsp; #&nbsp;
							</td>
							<td align="center" bgcolor="#E9E9E9"
								class="right-border verdana12darkgreybold">
								Additional Option
							</td>
							<td align="center" bgcolor="#E9E9E9"
								class="right-border verdana12darkgreybold">
								Auction
								<br>
								(total)
							</td>
							<td align="center" bgcolor="#E9E9E9"
								class="right-border verdana12darkgreybold">
								Fixed Price
								<br>
								(per month)
							</td>
							<td align="center" bgcolor="#E9E9E9"
								class="right-border verdana12darkgreybold">
								Shop
								<br>
								(per month)
							</td>
							<td align="center" bgcolor="#E9E9E9"
								class="right-border verdana12darkgreybold">
								Wanted
								<br>
								(per month)
							</td>
							<td align="center" bgcolor="#E9E9E9"
								class="right-border verdana12darkgreybold">
								Advertisement
								<br>
								(per month)
							</td>
							<td align="center" bgcolor="#E9E9E9"
								class="verdana12darkgreybold">
								Company Profile
								<br>
								(per month)
							</td>

						</tr>

						<s:iterator value="additionalOptionsFeesList" status="rowstatus">
							<s:hidden name="additionalOptionsFeesMap[%{id}].id" value="%{id}" />
							<s:set name="classCSS" value="%{'Textfiled-no-border-odd'}" var="classCSS"></s:set>
							<s:set name="bgColor" value="%{'#FFFFFF'}" var="bgColor"></s:set>

							<s:if test="#rowstatus.even">
								<s:set var="classCSS" value="%{'Textfiled-no-border-even'}"></s:set>
								<s:set var="bgColor" value="%{'#F8F8F8'}"></s:set>
							</s:if>

							<tr>
								<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
									&nbsp;
									<s:property value="%{#rowstatus.index + 1}" />
									&nbsp;
								</td>
								<td width="20%" align="left"
									class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
									<s:text name="additionalOption" />
									<s:hidden
										name="additionalOptionsFeesMap[%{id}].additionalOption"
										value="%{additionalOption}" />
									:
								</td>
								<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
									<s:if test="%{auction != null}">
										<s:textfield theme="simple" cssClass="%{classCSS}"
											name="additionalOptionsFeesMap[%{id}].auction"
											value="%{auction}" size="10" />
									</s:if>
									<s:else>-<s:hidden
											name="additionalOptionsFeesMap[%{id}].auction"
											value="%{auction}" />
									</s:else>
								</td>
								<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
									<s:if test="%{fixedPrice != null}">
										<s:textfield theme="simple" cssClass="%{classCSS}"
											name="additionalOptionsFeesMap[%{id}].fixedPrice"
											value="%{fixedPrice}" size="10" />
									</s:if>
									<s:else>-<s:hidden
											name="additionalOptionsFeesMap[%{id}].fixedPrice"
											value="%{fixedPrice}" />
									</s:else>
								</td>
								<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
									<s:if test="%{shop != null}">
										<s:textfield theme="simple" cssClass="%{classCSS}"
											name="additionalOptionsFeesMap[%{id}].shop" value="%{shop}"
											size="10" />
									</s:if>
									<s:else>-<s:hidden
											name="additionalOptionsFeesMap[%{id}].shop" value="%{shop}" />
									</s:else>
								</td>
								<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
									<s:if test="%{wanted != null}">
										<s:textfield theme="simple" cssClass="%{classCSS}"
											name="additionalOptionsFeesMap[%{id}].wanted"
											value="%{wanted}" size="10" />
									</s:if>
									<s:else>-<s:hidden
											name="additionalOptionsFeesMap[%{id}].wanted"
											value="%{wanted}" />
									</s:else>
								</td>
								<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
									<s:if test="%{advertisement != null}">
										<s:textfield theme="simple" cssClass="%{classCSS}"
											name="additionalOptionsFeesMap[%{id}].advertisement"
											value="%{advertisement}" size="10" />
									</s:if>
									<s:else>-<s:hidden
											name="additionalOptionsFeesMap[%{id}].advertisement"
											value="%{advertisement}" />
									</s:else>
								</td>
								<td align="center" class="verdana12Greybold" bgcolor="<s:property value="%{bgColor}" />">
									<s:if test="%{companyProfile != null}">
										<s:textfield theme="simple" cssClass="%{classCSS}"
											name="additionalOptionsFeesMap[%{id}].companyProfile"
											value="%{companyProfile}" size="10" />
									</s:if>
									<s:else>-<s:hidden
											name="additionalOptionsFeesMap[%{id}].companyProfile"
											value="%{companyProfile}" />
									</s:else>
								</td>
							</tr>
							<s:hidden name="additionalOptionsFeesMap[%{id}].tender" value="%{tender}" />
						</s:iterator>

					</tbody>
				</table>
			</td>
		</tr>
		<tr>
			<td align="center" width="100%">
				<s:submit theme="simple" type="image"
					src="../Admin-Images/save-chagnes-button.gif" value="Save Changes" />
				<img onclick="document.getElementById('form').reset();"
					style="cursor: pointer;" src="../Admin-Images/reset-button.gif"
					alt="Cancel" />
				<img onclick="history.go(-1);" style="cursor: pointer;"
					src="../Admin-Images/cancel_btn.gif" alt="Cancel" />
			</td>
		</tr>
	</table>
</s:form>